package com.paradogs.framework.server;

import com.paradogs.framework.server.ByteMessage;
import io.netty.channel.Channel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: yumi
 * @date: 2024/10/8  10:49
 * @Description: 消息处理上下文
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ParadogsContext {

    private String route;
    private Channel channel;
    private ByteMessage message; // ByteMessage | byte[] | json
    private Runnable exec;

    public ParadogsContext(Runnable exec) {
        this.exec = exec;
    }

}
